import service from '@/utils/request'

// @Tags questionnaireSetting
// @Summary 更新问卷限制
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.questionnaireSetting true "更新问卷限制"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /questionnaire/updateQuestionnaire [put]
export const updateQuestionnaireSetting = (data) => {
  return service({
    url: '/questionnaireSetting/updateQuestionnaireSetting',
    method: 'put',
    data,
  })
}

// @Tags questionnaireSetting
// @Summary 用uuid查询问卷限制
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.questionnaireSetting true "用id查询问卷"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /questionnaire/findQuestionnaire [get]
export const findQuestionnaireSetting = (params) => {
  return service({
    url: '/questionnaireSetting/findQuestionnaireSetting',
    method: 'get',
    params,
  })
}
